package csd.wyaiyr.com.config;

import lombok.Data;

@Data
public class PageInfoResult {

//  当前页

    private int pageNum;

//   每页显示大小

    private int pageSize;

//    查询结果总数

    private long total;

//   查询结果总页数

    private long pages;


    public int getPageNum() {
        return pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public long getTotal() {
        return total;
    }

    public long getPages() {
        return pages;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public void setPages(long pages) {
        this.pages = pages;
    }

    public static PageInfoResult empty(int pageNum, int pageSize) {
        PageInfoResult pageInfoResult = new PageInfoResult();
        pageInfoResult.setPageNum(pageNum);
        pageInfoResult.setPageSize(pageSize);
        return pageInfoResult;
    }
}
